export const CommonText = {
	debugPreviewSchemaDevice: "设备快照",
	debugPreviewSchemaGateway: "网关快照",
	debugPreviewSchemaProduct: "产品快照",
	configView: "管理视图",
	dataView: "数据视图"
};
export const AuthBtns = {
	operateList: "operateList",
	disabledMod: "disabledMod",
	pathMod: "mod",
	pathDel: "del",
	pathAdd: "add",
	pathAssignGroup: "assignGroup",
	pathStrangeGroup: "strangeGroup",
	pathUpdateLocation: "updateLocation",
	iotDevice: "iot-device",
	appletDevelop: "applet-develop",
	iotVriable: "iot-variable",
	softGateway: "soft-gateway",
	ss10Gateway: "ss10_gateway",
	ss30Gateway: "ss30_gateway",
	iotProduct: "iot-product"
};
export const SchemaNodeKey = {
	//类别
	schema: "schema",
	gatewaySchema: "gatewaySchema",
	profile: "profile",
	gatewayProfile: "gatewayProfile",
	detailInfo: "detailInfo",

	//schema字段
	title: "title",
	description: "description",
	properties: "properties",

	//业务节点分类
	basic: "basic", //基础信息
	platform: "platform", //平台信息
	system: "system", //系统信息
	runtime: "runtime", //运行状态
	sensor: "sensor", //变量模型配置
	view: "view", //可视化视图配置
	config: "config", //设备配置信息
	props: "props", //属性信息
	funcs: "func", //功能模型

	//扩展节点：页面固定的项
	extNavDeviceParam: "navDeviceParam",
	extNavGatewayConfig: "navGatewayConfig",
	extNavGatewaySensor: "navGatewaySensor",
	extNavDeviceConfig: "navDeviceConfig",
	extNavSensorConfig: "navSensorConfig",
	extNavFuncConfig: "navFuncConfig",
	extRunningLog: "runningLog",
	extDevelop: "develop",
	extLower: "extLower",

	//业务配置节点
	sn: "sn",
	name: "name",
	subdevice: "subdevice",
	device: "device",
	gateway: "gateway"
};

export const SchemaNodeType = {
	string: "string",
	number: "number",
	integer: "integer",
	array: "array",
	float: "float",
	object: "object"
};

export const alarmParam = {
	warningMode: {
		max: { value: 1, label: "越上限" },
		min: { value: 2, label: "越下限" },
		range: { value: 3, label: "越上下限" },
		eq: { value: 4, label: "等于" },
		event: { value: 5, label: "事件" }
	},
	warningLevel: [],
	// {
	// // l1: { value: 1, label: "提示信息" },
	// l2: { value: 1, label: "一般告警" },
	// l3: { value: 2, label: "重要告警" },
	// l4: { value: 3, label: "严重告警" },
	// l5: { value: 4, label: "危险告警" }
	// }
	isError: {
		no: { value: 0, label: "否" },
		yes: { value: 1, label: "是" }
	},
	autoDone: {
		cust: { value: false, label: "人工" },
		auto: { value: true, label: "自动" }
	},
	triggerType: {
		first: { value: 1, label: "首次" },
		every: { value: 2, label: "每次" }
	},
	warningType: {
		device: { value: 0, label: "设备触发" },
		platform: { value: 1, label: "平台触发" }
	}
};
export const CronSimple = [
	{ key: "0/30 * * * * ?", label: "每30秒" },
	{ key: "0 0/1 * * * ?", label: "每1分钟" },
	{ key: "0 */10 * * * ?", label: "每10分钟" },
	{ key: "0 0 * * * ?", label: "整点执行" },
	{ key: "0 30 12 * * ?", label: "每天12:30" },
	{ key: "0 30 12,18 * * ?", label: "每天12:30,18:30" },
	{ key: "0 0 0 * * ?", label: "每天0点" },
	{ key: "0 0 23 * * ?", label: "每天23点" },
	{ key: "0 0 0 1 * ?", label: "每月1日" }
];

export const modbusRtu = "modbusRtu";
export const modbusTcp = "modbusTcp";
export const deptAnonymous = "anonymous";
export const notifyTemplateType = {
	sms: "1",
	email: "2"
};
export const notifyType = {
	sms: "sms",
	email: "email",
	message: "message"
};
//通知用戶类型
export const notifyUserType = {
	//系统用哦各行业
	systemUser: "3",
	//自定义用户
	custUser: "4"
};
